//@author A0078695H
#include "command.h"

Cmd::Cmd(cmdTypes cmdType, vector<string> params, string origStr) {
	this->cmdType = cmdType;
	this->params = params;
	this->origStr = origStr;
}

string Cmd::toString() {
	return this->origStr;
}

cmdTypes Cmd::getCmdType() {
	return this->cmdType;
}

vector<string> Cmd::getParams() {
	vector<string> res(this->params);
	return res;
}

void Cmd::setCmdType(cmdTypes type) {
	this->cmdType = type;
}

void Cmd::setParams(vector<string> params) {
	this->params = vector<string>(params);
}